#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QApplication>
#include <QMenuBar>
#include <QAction>
#include <QMenu>
#include <QScrollArea>
#include "Document.h"
#include "Language.h"
#include "Parser.h"
#include "GrammarDescriptor.h"

class MainWindow : public QMainWindow {
	Q_OBJECT
	public:
		MainWindow(QWidget *parent = 0);
		
	public slots:
		void inputTextMainWindow(const QString&, int);
	
	signals:
		void outputTextMainWindow(const QString&, int);
		
	private:
		void addMenu();
		
		Document* doc;
		QScrollArea* scrollDocument;
		
		Pointer<LeonardVirtualMachine> LVM;
};

#endif
